package com.tengfei.main.exam.domain.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.tengfei.common.annotation.ExcelDictFormat;
import com.tengfei.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author feige
 * @version v1.0
 * @date 2022-10-19-16:43
 * @description
 */

@Data
@ApiModel("用户考试成绩导出视图")
public class RecodeExportVo implements Serializable {



    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;


    /**
     * 用户账号
     */
    @ExcelProperty(value = "用户名")
    private String userName;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 部门名称
     */
    @ExcelProperty(value = "部门")
    private String deptName;

    /**
     * 电话号码
     */
    @ExcelProperty(value = "电话号码")
    private String phonenumber;


    /**
     * 分数
     */
    @ExcelProperty(value = "考试得分")
    private Integer userPaperScore;

    /**
     * 试卷总分
     */
    @ExcelProperty(value = "试卷总分")
    private Integer paperScore;

    /**
     * 用户考试状态(0:为开考,1:考试中,2:已交卷)
     */
    @ExcelProperty(value = "用户考试状态",converter = ExcelDictConvert.class,index = 7)
    @ExcelDictFormat(dictType = "user_paper_status")
    private Integer userPaperStatus;

    /**
     * 用户开考时间
     */
    @ExcelProperty(value = "用户开考时间")
    private Date userStartTime;
    /**
     * 用户交卷时间
     */
    @ExcelProperty(value = "用户交卷时间")
    private Date userEndTime;

}
